package com.house365.im.client.dto;

import com.house365.core.bean.BaseBean;

/**
 * @Author Rick.Ping
 * @Date 2013-12-17
 * @Comment
 **/
public class MessageDto extends BaseBean{
	// 数据库主键，暂时无用
	private int id;
	private long starttime;
	private String fromuser;
	private String touser;

	private String message;

	// 0-未读，1-未读
	private int status;

	
	
	public static final int STATUS_UNREAD=0;
	public static final int STATUS_OK=1;
	public static final int STATUS_UNSEND=11;
	public static final int STATUS_SEND_ERROR=12;
	//0-文本,1-图片(base64)
	private int type;
	
	public static final int TYPE_TEXT=0;
	public static final int TYPE_IMG=1;
	public static final int TYPE_VOICE=2;
	public static final int TYPE_VEDIO=3;
	
	private String subject;
	private long voiceDuration;
	
	public MessageDto() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}


	public String getFromuser() {
		return fromuser;
	}

	public void setFromuser(String fromuser) {
		this.fromuser = fromuser;
	}

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}


	public MessageDto(long starttime, String fromuser, String touser,
			String subject,String message,int status) {
		super();
		this.starttime = starttime;
		this.fromuser = fromuser;
		this.touser = touser;
		this.subject = subject;
		this.message = message;
		this.status = status;
		this.type =0;
		
	}
	public MessageDto(long starttime, String fromuser, String touser,
			String subject,String message,int status,int type) {
		super();
		this.starttime = starttime;
		this.fromuser = fromuser;
		this.touser = touser;
		this.subject = subject;
		this.message = message;
		this.status = status;
		this.type =type;
		
	}
	public long getStarttime() {
		return starttime;
	}

	public void setStarttime(long starttime) {
		this.starttime = starttime;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public long getVoiceDuration() {
		return voiceDuration;
	}

	public void setVoiceDuration(long voiceDuration) {
		this.voiceDuration = voiceDuration;
	}
	
}
